import { createRouter, createWebHashHistory } from 'vue-router'
import LoginView from '@/views/LoginView.vue'
const router = createRouter({
  history: createWebHashHistory(import.meta.env.BASE_URL),
  linkActiveClass: "link-active",
  linkExactActiveClass: "link-active-son",
  sensitive: true,
  strict: true,
  routes: [
    {
      path: '/',
      name: 'login',
      component: LoginView
    },
    {
      path: '/home',
      name: 'home',
      component: () => import('@/views/HomeView.vue'),
      children: [
        {
          path: '',
          name: 'submit',
          component: () => import('@/components/InputView.vue')
        },
        {
          path: '/search',
          name: 'search',
          component: () => import('@/components/SearchView.vue')
        },
      ]
    }
  ]
})

export default router
